package org.example.myleet.p1482;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(3 == solution.minDays(new int[]{1,10,3,10,2}, 3, 1));
        Assert.isTrue(-1 == solution.minDays(new int[]{1,10,3,10,2}, 3, 2));
        Assert.isTrue(12 == solution.minDays(new int[]{7,7,7,7,12,7,7}, 2, 3));
        Assert.isTrue(1000000000 == solution.minDays(new int[]{1000000000,1000000000}, 1, 1));
        Assert.isTrue(9 == solution.minDays(new int[]{1,10,2,9,3,8,4,7,5,6}, 4, 2));
        Assert.isTrue(-1 == solution.minDays(new int[]{1,10,2,9,3,8,4,7,5,6}, 11, 1));
    }
}
